package org.example.producer.config;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: MyRabbitmqConfig <br/>
 * Description: <br/>
 * date: 2021-06-28 22:48<br/>
 *
 * @author lsliang
 */
@EnableRabbit
@Configuration
public class MyRabbitmqConfig {

    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
